package com.service;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import com.dao.*;
import com.entity.*;
@Service
public class OrderService {
	@Resource
	private AddressDao aDao;
	@Resource
	private OrderDao oDao;
	public void saveAddress(ReceiveAddress address){
		aDao.saveAddress(address);
	}
	
	public int addOrder(DangOrder order){
		return oDao.addOrder(order);
	}
	
	public DangOrder getOrderById(int id){
		return oDao.getOrder(id);
	}
}
